package com.niit.xlztest.service;

import com.niit.xlztest.bean.Book;
import com.niit.xlztest.repository.DetailRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service("DetailService")

public class DetailServiceImpl implements DetailService {
    @Autowired
    private DetailRepository detailRepository;

    @Override
    public Book findBookBid(String book_id) {

        return detailRepository.findBookBid(book_id);
    }

    @Override
    public void updateBook(String book_id) {

       detailRepository.updateBook(book_id);
    }



}
